import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import Calendar from '@/views/Calendar.vue'
import Apply from '@/views/Apply.vue'
import Race from '@/views/Race.vue'
import Show from '@/views/Show.vue'
import Stats from '@/views/Stats.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      meta: {
        showBack: false
      }
    },
    {
      path: '/calendar',
      name: 'calendar',
      component: Calendar
    },
    {
      path: '/apply',
      name: 'apply',
      component: Apply
    },
    {
      path: '/race',
      name: 'race',
      component: Race
    },
    {
      path: '/show',
      name: 'show',
      component: Show,
      meta: {
        showLogo: false
      }
    },
    {
      path: '/stats',
      name: 'stats',
      component: Stats
    }
  ]
})

export default router
